package ar.com.gep.soccer.entities;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;

import ar.com.cdt.framework.persistence.entity.Base;

@Entity
public class Edition extends Base {

	private static final long serialVersionUID = 7021650262882173223L;

	@Column
	private int number;

	@Column
	private int numberOfRounds;

	@Column
	private int totalOfRounds;

	@ManyToMany(cascade = CascadeType.ALL)
	private List<Round> rounds;

	@ManyToMany(cascade = CascadeType.ALL)
	private List<Position> positions;

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public int getNumberOfRounds() {
		return numberOfRounds;
	}

	public void setNumberOfRounds(int numberOfRounds) {
		this.numberOfRounds = numberOfRounds;
	}

	public List<Round> getRounds() {
		return rounds;
	}

	public void setRounds(List<Round> rounds) {
		this.rounds = rounds;
	}

	public List<Position> getPositions() {
		return positions;
	}

	public void setPositions(List<Position> positions) {
		this.positions = positions;
	}

	public int getTotalOfRounds() {
		return totalOfRounds;
	}

	public void setTotalOfRounds(int totalOfRounds) {
		this.totalOfRounds = totalOfRounds;
	}

}
